#include <QCoreApplication> //多函数返回值的问题  C++的函数参数引用（复数在极坐标下实现）
#include <iostream>
#include <functional>
#include "DeMoiver.h"

int main(int argc, char *argv[])
{
   double pi = 3.1416;
   double ang = pi / 3;
   double rad = 2;

   double real = 0.0;
   double imag = 0.0;
   double mod = 0.0;

   demoiver(rad,ang,real,imag,mod);

   std::cout << "real is " << real << std::endl;
   std::cout << "imag is " << imag << std::endl;
   std::cout << "mod is " << mod << std::endl;

}
